package com.hqyj.javaSpringCloudWeb.modules.account.service;

import com.hqyj.entity.account.User;
import com.hqyj.entity.common.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author ：Cwd
 * @Description：AccountFeignClient
 * @date ：2021/9/6 9:23
 */
@FeignClient(name = "client-account")
public interface AccountFeignClient {

    @PostMapping(value = "/api/account/login", consumes = "application/json")
    public Result<User> login(@RequestBody User user);

    @PostMapping(value = "/api/account/user", consumes = "application/json")
    public Result<User> insertUser(@RequestBody User user);
}
